<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div class="demo"></div>
    <!-- <script src='./jquery.js'></script>   -->
    <script src='./myjQuery.js'></script>  
    <script>
        $('.demo')
            // .css({position: 'absolute', left: 0, top: 0, width: 100, height: 100, backgroundColor: 'red'})
            // .on('click', function () {
            //     $(this)
            //         .animate({width: 120, height: 120, left: 100, top: 100}, 1000)
            //         .animate({width: 220, height: 140, left: 200, top: 200}, 1000)
            //         .animate({width: 320, height: 160, left: 300, top: 300}, 1000);
            // });

        
        // myAnimate

        $('.demo')
            .css({position: 'absolute', left: 0, top: 0, width: '100px', height: '100px', backgroundColor: 'red'})
            .myAnimate({width: 120, height: 120, left: 100, top: 100})
                .myDelay(2000)
            .myAnimate({width: 220, height: 140, left: 200, top: 200})
                .myDelay(2000)
            .myAnimate({width: 320, height: 160, left: 300, top: 300});

    </script>  
</body>
</html>